package com.pd.backend.map.mapentity;

import lombok.Data;

/**
 * @ClassName GetSex
 * @Description TODO
 * @date 2023/2/27 20:45
 * @Version 1.0
 */
@Data
public class GetSex {
    public GetSex(String code) {

        this.code = code;
        if ("W".equals(code)){
            this.desc = "女";
        }else if("M".equals(code)){
            this.desc = "男";
        }else {
            this.desc = "未知";
        }
    }

    private String desc;
    private String code;
}
